package com.knowledge.knowledge_notes.dao;

import com.knowledge.knowledge_notes.pojo.AdminRolePermission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.Arrays;
import java.util.List;
import java.util.Set;

public interface AdminRolePermissionDAO extends JpaRepository<AdminRolePermission, Integer> {
    List<AdminRolePermission> findAllByRid(Integer rid);

    List<AdminRolePermission> findAllByRidIn(List<Integer> rids);

    void deleteAllByRid(int rid);
}
